<!DOCTYPE html>
<html>
<head>
  	<title>进销存管理系统</title>
  	<#import "/common/common.macro.ftl" as netCommon>
	<@netCommon.commonStyle />
	<!-- DataTables -->
  	<link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.css">
	<link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/select2/select2.min.css">
	<#-- select2
    <link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/select2/select2.min.css">
    <script src="${request.contextPath}/static/adminlte/plugins/select2/select2.min.js"></script>
    //$(".select2").select2();
    -->
	<style>
		th{
			text-align: center;
			width:9%
		}
		td{
			text-align: center;
			width:9%
		}
		.row {
		  margin-top: 4px;
		  margin-bottom: 4px;
		}
		.mybox {
		  margin-top: 4px;
		  margin-bottom: 4px;
		}
		.summerButton{
			margin-top: 4px;
		}
	</style>
</head>
<body class="hold-transition skin-blue sidebar-mini <#if cookieMap?exists && "off" == cookieMap["adminlte_settings"].value >sidebar-collapse</#if>">
<div class="wrapper">
	<!-- header -->
	<@netCommon.commonHeader />
	<!-- left -->
	<@netCommon.commonLeft "outorderlist" />
	
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>详情订单</h1>
		</section>
		
		<!-- Main content -->
	    <section class="content">
	   	 <#--基础信息-->
                <div class="box box-primary" style="margin-bottom: 4px;">
                    <div class="box-header with-border">
                        <#--<label class="col-sm-1 control-label">选择客户</label>
                            <div class="col-sm-3">
                                <select id="selectCustomer" class="form-control" style="width: 100%;" name="customerid">
                                	<option value="0">请选择客户</option>
                                    <#if customerList?exists && customerList?size gt 0>
                                        <#list customerList as group>
                                            <option value="${group.tc_customerid}">${group.tc_customername}</option>
                                        </#list>
                                    </#if>
                                </select>
                            </div>-->
                        <div class="">
                        	<label class="col-sm-1 control-label">订单日期</label>
                        	<input class="col-sm-2" type="text" class="form-control" disabled  value="${orderInfo.to_ordertime}" maxlength="100" >
                        	<input class="col-sm-2" type="text" class="form-control" style="display:none;"  value="${type}" maxlength="100" id="stype">
                        </div>
                        <div class="box-tools pull-right">
                        	 <button class="btn btn-info btn-xs" onclick="printOrder()" >打印</button>
                            <button class="btn btn-info btn-xs" onclick="goback()" >返回</button>
                        </div>
                    </div>

                    <div id="cable_model" class="box-body">
                        <div class="form-group">
	                        <table id="dataTable" class="table">
	                        	<thead>
		                        	<tr>
		                        		<th>线缆型号</th>
		                        		<th>线缆规格</th>
		                        		<th>单位</th>
		                        		<th>线缆颜色</th>
		                        		<th>线缆质量</th>
		                        		<th>出货仓库</th>
		                        		<th>数量</th>
		                        		<th>单价</th>
		                        		<th>折扣</th>
		                        		<th>小计</th>
		                        	</tr>
	                        	</thead>
	                        	<tbody>
	                        		<#if ItemInfo?exists && ItemInfo?size gt 0>
                                        <#list ItemInfo as group>
		                                    <tr>
				                            	<td>${group.toi_cablemodel}
				                            	</td>
				                            	<td>${group.toi_cablestandard}
				                            	</td>
				                            	<td>${group.toi_unit}
				                            	</td>
				                            	<td>${group.toi_color}
				                            	</td>
				                            	<td>${group.toi_quality}
				                            	</td>
				                            	<td>${group.toi_warehouse}
				                            	</td>
				                            	<td>${group.toi_number}
				                            	</td>
				                            	<td>${group.toi_price}
				                            	</td>
				                            	<td>${group.toi_discount}
				                            	</td>
				                            	<td>${group.toi_total}
				                            	</td>
				                        	</tr>
                                        </#list>
                                    </#if>
	                        	</tbody>
	                        </table>
                        </div>
                    </div>
              <#--  </div>
                <div class="box box-primary mybox"> -->
                	<div id="customerinfo" class="box-body">
                	<form class="form-horizontal" id="dataForm">
                        <div class="form-group" style="margin-right:0px;margin-left:0px;">
	                        	<div class="row">
		                            <label class="col-sm-1 control-label">订单编号</label>
		                            <div class="col-sm-2">
		                            	 <input type="text" class="form-control" name="orderid" disabled  value="${orderInfo.to_orderid}" maxlength="100" id="orderid" name="orderid">
		                            </div>
		                            <label class="col-sm-1 control-label">客户公司</label>
		                            <div class="col-sm-2">
		                            	 <input type="hidden" class="form-control" maxlength="100" id="customerid" name="customerid">
		                            	 <input type="text" class="form-control" disabled value="${orderInfo.to_customername}" maxlength="100" id="customername" name="customername">
		                            </div>
		                            <label class="col-sm-1 control-label">联系人</label>
		                            <div class="col-sm-2">
		                                <input type="text" class="form-control" disabled value="${orderInfo.to_contacts}" maxlength="100" id="contacts" name="contacts">
		                            </div>
		                            <label class="col-sm-1 control-label">联系电话</label>
		                            <div class="col-sm-2">
		                            	 <input type="text" class="form-control" disabled value="${orderInfo.to_telephone}" maxlength="100" id="telephone" name="telephone">
		                            </div>
		                        </div>
	                        	<div class="row">
		                            <label class="col-sm-1 control-label">地址</label>
		                            <div class="col-sm-2">
		                                <input type="text" class="form-control" disabled value="${orderInfo.to_address}" maxlength="100" id="address" name="address">
		                            </div>
		                            <label class="col-sm-1 control-label">仓库地址</label>
		                            <div class="col-sm-2">
		                            	 <input type="text" class="form-control" disabled value="${orderInfo.to_warehouse}" maxlength="100" id="warehouse" name="warehouse">
		                            </div>
		                        </div>
		                        <div class="row">
		                         	<label class="col-sm-1 control-label">备注</label>
		                            <div class="col-sm-8">
		                            	 <input type="text" class="form-control" disabled maxlength="200" name="remark" value="${orderInfo.to_remark}">
		                        	</div>
		                         	<label class="col-sm-1 control-label">总计</label>
		                            <div class="col-sm-2">
		                            	 <input type="text" class="form-control" id="countZong" disabled maxlength="100" name="countZong" value="${orderInfo.to_totalprice}">
		                        	</div>
	                     		</div>
	                     	</div>
	                     </from>
                        </div>
                </div>
	    </section>
	</div>
	
	<!-- footer -->
	<@netCommon.commonFooter />
</div>

<@netCommon.commonScript />
<!-- DataTables -->
<script src="${request.contextPath}/static/adminlte/plugins/select2/select2.min.js"></script>
<script src="${request.contextPath}/static/adminlte/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="${request.contextPath}/static/plugins/jquery/jquery.validate.min.js"></script>
<script src="${request.contextPath}/static/js/outorder.info.1.js"></script>
</body>
</html>
